import React,{ Component } from 'react';
import './heatlist.scss';
import {
Link
} from 'react-router-dom';
export default class HeatList extends Component{
	constructor (props) {
		super(props)
	}

	render(){
		return(
			<Link to={
				{
					pathname: `${window.baseUrl}/clinetDetails`,
					state: {
						account_user_id: this.props.heatList.caller_id
					}
				}
			}>
			<div className="heatList" >
				<div>
					<img src={this.props.heatList.avatar} className="heatList_img"/>
					<p className="heatList_text"><span className="heat_name">{this.props.heatList.nickname}</span><span className="heat_text">跟你在名片上查看了<span style={{color: "#09BB07"}}>{this.props.heatList.card_count}</span>次</span></p>
				</div>
				<i className="glyphicon glyphicon-right"></i>
			</div>
			</Link>
		)
	}
}